package cn.edu.cug.cs.gtl.apps.ui.actions;

import javax.swing.filechooser.FileFilter;
import java.io.File;

public class IVFileFilter extends FileFilter {
    @Override
    public String getDescription() {
        return "Open-Inventor files";
    }

    @Override
    public boolean accept(File f) {
        if ( f == null )
            return false;
        if ( f.isDirectory() )
            return true;
        return f.getName().toLowerCase().endsWith(".iv");
    }
}
